tryTest

Attempts to parse and evaluate an expression with dummy values, failing null instead of throwing

Return

ValidationResult wrapping an Expression if parsing succeeds, or null if it fails (with the exception message passed back with the Result)

Author

fzzyhmstrs

Since

0.2.0

Parameters

str

the math expression to try parsing

vars

Set of valid variable characters. This method will build a dummy Map to test eval() of the expression